<html><head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Analysis" rel="Chapter" href="Analysis.html">
<link title="Ast" rel="Chapter" href="Ast.html">
<link title="Ast_info" rel="Chapter" href="Ast_info.html">
<link title="Environment" rel="Chapter" href="Environment.html">
<link title="Expression" rel="Chapter" href="Expression.html">
<link title="Filename_util" rel="Chapter" href="Filename_util.html">
<link title="Interpreter" rel="Chapter" href="Interpreter.html">
<link title="Jtemplate" rel="Chapter" href="Jtemplate.html">
<link title="Lexer" rel="Chapter" href="Lexer.html">
<link title="Library" rel="Chapter" href="Library.html">
<link title="Library_builtin" rel="Chapter" href="Library_builtin.html">
<link title="Library_io" rel="Chapter" href="Library_io.html">
<link title="Library_string" rel="Chapter" href="Library_string.html">
<link title="Parser" rel="Chapter" href="Parser.html">
<link title="Parser_util" rel="Chapter" href="Parser_util.html">
<link title="RuntimeError" rel="Chapter" href="RuntimeError.html"><title>Parser.parse_error</title>
</head>
<body>
<code class="code"><span class="keyword">let</span>&nbsp;parse_error&nbsp;s&nbsp;=<br>
&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">let</span>&nbsp;pos&nbsp;=&nbsp;<span class="constructor">Parsing</span>.symbol_start_pos()&nbsp;<span class="keyword">in</span><br>
&nbsp;&nbsp;&nbsp;&nbsp;print_string&nbsp;(<span class="string">"in&nbsp;file&nbsp;"</span>&nbsp;^&nbsp;(<span class="constructor">Filename</span>.basename&nbsp;pos.<span class="constructor">Lexing</span>.pos_fname)&nbsp;^&nbsp;<span class="string">":&nbsp;"</span>^&nbsp;s^<span class="string">"&nbsp;at&nbsp;line&nbsp;"</span>);<br>
&nbsp;&nbsp;&nbsp;&nbsp;print_int&nbsp;pos.<span class="constructor">Lexing</span>.pos_lnum;<br>
&nbsp;&nbsp;&nbsp;&nbsp;print_string&nbsp;<span class="string">"&nbsp;at&nbsp;columns&nbsp;"</span>;<br>
&nbsp;&nbsp;&nbsp;&nbsp;print_int&nbsp;(<span class="constructor">Parsing</span>.symbol_start()&nbsp;-&nbsp;pos.<span class="constructor">Lexing</span>.pos_bol);<br>
&nbsp;&nbsp;&nbsp;&nbsp;print_string(<span class="string">"-"</span>);<br>
&nbsp;&nbsp;&nbsp;&nbsp;print_int&nbsp;(<span class="constructor">Parsing</span>.symbol_end()&nbsp;-&nbsp;pos.<span class="constructor">Lexing</span>.pos_bol);<br>
&nbsp;&nbsp;&nbsp;&nbsp;print_string&nbsp;<span class="string">"\n"</span>;<br>
&nbsp;&nbsp;&nbsp;&nbsp;flush&nbsp;stdout</code></body></html>